home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / patches / ami301c.zip / QKFUNCT.SM$ / QKFUNCT.SMM
INI File  |  1993-05-27  |  28KB  |  1,936 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     QMS-PS 810
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Return the value of a formula or @ function.
  19.     
  20.     
  21.     
  22.     
  23.     738531019
  24.     26
  25.     732570070
  26.     323
  27.     10
  28.     517
  29.     4188
  30.     14
  31.     14
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     1
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [ParaNum]
  54.     1
  55. [tag]
  56.     Body Text
  57.     2
  58.     [fnt]
  59.         Times New Roman
  60.         240
  61.         0
  62.         49152
  63.     [algn]
  64.         1
  65.         1
  66.         0
  67.         0
  68.         0
  69.     [spc]
  70.         33
  71.         273
  72.         1
  73.         0
  74.         0
  75.         1
  76.         100
  77.     [brk]
  78.         4
  79.     [line]
  80.         8
  81.         0
  82.         1
  83.         0
  84.         1
  85.         1
  86.         1
  87.         10
  88.         10
  89.         1
  90.     [spec]
  91.         0
  92.         0
  93.         
  94.         0
  95.         1
  96.         1
  97.         0
  98.         0
  99.         0
  100.         0
  101.     [nfmt]
  102.         280
  103.         1
  104.         2
  105.         .
  106.         ,
  107.         $
  108.     Body Text
  109.     0
  110.     0
  111. [tag]
  112.     Body Single
  113.     3
  114.     [fnt]
  115.         Times New Roman
  116.         240
  117.         0
  118.         49152
  119.     [algn]
  120.         1
  121.         1
  122.         0
  123.         0
  124.         0
  125.     [spc]
  126.         33
  127.         273
  128.         1
  129.         0
  130.         0
  131.         1
  132.         100
  133.     [brk]
  134.         4
  135.     [line]
  136.         8
  137.         0
  138.         1
  139.         0
  140.         1
  141.         1
  142.         1
  143.         10
  144.         10
  145.         1
  146.     [spec]
  147.         0
  148.         0
  149.         
  150.         0
  151.         1
  152.         1
  153.         0
  154.         0
  155.         0
  156.         0
  157.     [nfmt]
  158.         280
  159.         1
  160.         2
  161.         .
  162.         ,
  163.         $
  164.     Body Single
  165.     0
  166.     0
  167. [tag]
  168.     Bullet
  169.     4
  170.     [fnt]
  171.         Times New Roman
  172.         240
  173.         0
  174.         49152
  175.     [algn]
  176.         1
  177.         1
  178.         0
  179.         288
  180.         288
  181.     [spc]
  182.         33
  183.         273
  184.         1
  185.         0
  186.         0
  187.         1
  188.         100
  189.     [brk]
  190.         4
  191.     [line]
  192.         8
  193.         0
  194.         1
  195.         0
  196.         1
  197.         1
  198.         1
  199.         10
  200.         10
  201.         1
  202.     [spec]
  203.         0
  204.         0
  205.         <*0>
  206.         360
  207.         1
  208.         1
  209.         0
  210.         0
  211.         0
  212.         0
  213.     [nfmt]
  214.         272
  215.         1
  216.         2
  217.         .
  218.         ,
  219.         $
  220.     Bullet
  221.     0
  222.     0
  223. [tag]
  224.     Bullet 1
  225.     5
  226.     [fnt]
  227.         Times New Roman
  228.         240
  229.         0
  230.         49152
  231.     [algn]
  232.         1
  233.         1
  234.         288
  235.         288
  236.         288
  237.     [spc]
  238.         33
  239.         273
  240.         1
  241.         0
  242.         0
  243.         1
  244.         100
  245.     [brk]
  246.         4
  247.     [line]
  248.         8
  249.         0
  250.         1
  251.         0
  252.         1
  253.         1
  254.         1
  255.         10
  256.         10
  257.         1
  258.     [spec]
  259.         0
  260.         0
  261.         <*5>
  262.         0
  263.         1
  264.         1
  265.         0
  266.         0
  267.         0
  268.         0
  269.     [nfmt]
  270.         280
  271.         1
  272.         2
  273.         .
  274.         ,
  275.         $
  276.     Bullet 1
  277.     0
  278.     0
  279. [tag]
  280.     Number List
  281.     6
  282.     [fnt]
  283.         Times New Roman
  284.         240
  285.         0
  286.         49152
  287.     [algn]
  288.         1
  289.         1
  290.         360
  291.         360
  292.         360
  293.     [spc]
  294.         33
  295.         273
  296.         1
  297.         0
  298.         0
  299.         1
  300.         100
  301.     [brk]
  302.         4
  303.     [line]
  304.         8
  305.         0
  306.         1
  307.         0
  308.         1
  309.         1
  310.         1
  311.         10
  312.         10
  313.         1
  314.     [spec]
  315.         0
  316.         0
  317.         <*:>.
  318.         360
  319.         1
  320.         1
  321.         0
  322.         16
  323.         0
  324.         0
  325.     [nfmt]
  326.         272
  327.         1
  328.         2
  329.         .
  330.         ,
  331.         $
  332.     Number List
  333.     0
  334.     0
  335. [tag]
  336.     Subhead
  337.     7
  338.     [fnt]
  339.         Times New Roman
  340.         240
  341.         0
  342.         49155
  343.     [algn]
  344.         1
  345.         1
  346.         0
  347.         0
  348.         0
  349.     [spc]
  350.         33
  351.         273
  352.         1
  353.         72
  354.         72
  355.         1
  356.         100
  357.     [brk]
  358.         4
  359.     [line]
  360.         8
  361.         0
  362.         1
  363.         0
  364.         1
  365.         1
  366.         1
  367.         10
  368.         10
  369.         1
  370.     [spec]
  371.         0
  372.         2
  373.         
  374.         0
  375.         1
  376.         1
  377.         0
  378.         0
  379.         0
  380.         0
  381.     [nfmt]
  382.         272
  383.         1
  384.         2
  385.         .
  386.         ,
  387.         $
  388.     Subhead
  389.     0
  390.     0
  391. [tag]
  392.     Title
  393.     8
  394.     [fnt]
  395.         Arial
  396.         360
  397.         0
  398.         16385
  399.     [algn]
  400.         4
  401.         1
  402.         0
  403.         0
  404.         0
  405.     [spc]
  406.         33
  407.         446
  408.         1
  409.         144
  410.         72
  411.         1
  412.         100
  413.     [brk]
  414.         16
  415.     [line]
  416.         8
  417.         0
  418.         1
  419.         0
  420.         1
  421.         1
  422.         1
  423.         10
  424.         10
  425.         1
  426.     [spec]
  427.         0
  428.         1
  429.         
  430.         0
  431.         1
  432.         1
  433.         0
  434.         0
  435.         0
  436.         0
  437.     [nfmt]
  438.         272
  439.         1
  440.         2
  441.         .
  442.         ,
  443.         $
  444.     Title
  445.     0
  446.     0
  447. [tag]
  448.     Header
  449.     9
  450.     [fnt]
  451.         Times New Roman
  452.         240
  453.         0
  454.         49152
  455.     [algn]
  456.         1
  457.         1
  458.         0
  459.         0
  460.         0
  461.     [spc]
  462.         33
  463.         273
  464.         1
  465.         0
  466.         0
  467.         1
  468.         100
  469.     [brk]
  470.         4
  471.     [line]
  472.         8
  473.         0
  474.         1
  475.         0
  476.         1
  477.         1
  478.         1
  479.         10
  480.         10
  481.         1
  482.     [spec]
  483.         0
  484.         0
  485.         
  486.         0
  487.         1
  488.         1
  489.         0
  490.         0
  491.         0
  492.         0
  493.     [nfmt]
  494.         280
  495.         1
  496.         2
  497.         .
  498.         ,
  499.         $
  500.     Header
  501.     0
  502.     0
  503. [tag]
  504.     Footer
  505.     11
  506.     [fnt]
  507.         Times New Roman
  508.         240
  509.         0
  510.         49152
  511.     [algn]
  512.         1
  513.         1
  514.         0
  515.         0
  516.         0
  517.     [spc]
  518.         33
  519.         273
  520.         1
  521.         0
  522.         0
  523.         1
  524.         100
  525.     [brk]
  526.         4
  527.     [line]
  528.         8
  529.         0
  530.         1
  531.         0
  532.         1
  533.         1
  534.         1
  535.         10
  536.         10
  537.         1
  538.     [spec]
  539.         0
  540.         0
  541.         
  542.         0
  543.         1
  544.         1
  545.         0
  546.         0
  547.         0
  548.         0
  549.     [nfmt]
  550.         280
  551.         1
  552.         2
  553.         .
  554.         ,
  555.         $
  556.     Footer
  557.     0
  558.     0
  559. [lay]
  560.     Standard
  561.     513
  562.     [rght]
  563.         15840
  564.         12240
  565.         1
  566.         1440
  567.         1440
  568.         1
  569.         1440
  570.         1440
  571.         0
  572.         1
  573.         0
  574.         1
  575.         0
  576.         2
  577.         1
  578.         1440
  579.         10800
  580.         12
  581.         1
  582.         720
  583.         1
  584.         1440
  585.         1
  586.         2160
  587.         1
  588.         2880
  589.         1
  590.         3600
  591.         1
  592.         4320
  593.         1
  594.         5040
  595.         1
  596.         5760
  597.         1
  598.         6480
  599.         1
  600.         7200
  601.         1
  602.         7920
  603.         1
  604.         8640
  605.     [hrght]
  606.     [lyfrm]
  607.         1
  608.         11200
  609.         0
  610.         0
  611.         12240
  612.         1440
  613.         0
  614.         1
  615.         3
  616.         1 0 0 0 0 0 0
  617.         0
  618.         0
  619.         1
  620.     [frmlay]
  621.         1440
  622.         12240
  623.         1
  624.         1440
  625.         72
  626.         1
  627.         792
  628.         1440
  629.         0
  630.         1
  631.         0
  632.         1
  633.         1
  634.         0
  635.         1
  636.         1440
  637.         10800
  638.         2
  639.         2
  640.         4680
  641.         3
  642.         9360
  643.     [txt]
  644. Peyton McManus
  645.  
  646. Lotus WPD
  647.  
  648. >
  649.     [frght]
  650.     [lyfrm]
  651.         1
  652.         13248
  653.         0
  654.         14400
  655.         12240
  656.         15840
  657.         0
  658.         1
  659.         3
  660.         1 0 0 0 0 0 0
  661.         0
  662.         0
  663.         2
  664.     [frmlay]
  665.         15840
  666.         12240
  667.         1
  668.         1440
  669.         792
  670.         1
  671.         14472
  672.         1440
  673.         0
  674.         1
  675.         0
  676.         1
  677.         1
  678.         0
  679.         1
  680.         1440
  681.         10800
  682.         2
  683.         2
  684.         4680
  685.         3
  686.         9360
  687.     [txt]
  688. >
  689. [elay]
  690. [l1]
  691.     0
  692. [pg]
  693.     10
  694.     42 0 17 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  695.     86 0 14 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  696.     93 0 5 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  697.     134 0 50 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  698.     177 70 56 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  699.     221 0 15 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  700.     265 0 23 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  701.     309 0 8 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  702.     354 0 47 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  703.     379 0 10 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  704. [edoc]
  705. @Outline2@<:#284,9360>' Macro to return the value of an @ function.  Demonstrates basic use of Ltsce01.dll
  706.  
  707. @Outline2@<:#284,9360>
  708.  
  709. @Outline2@<:#284,9360>Define NumDec    2
  710.  
  711. <:#284,9360>Define EM_LimitText 1045
  712.  
  713. @Outline2@<:#284,9360>Define VK_F1        112
  714.  
  715. @Outline2@<:#284,9360>
  716.  
  717. <:#284,9360>Declare DataChange(Hdlg, id, value)
  718.  
  719. <:#284,9360>Declare FontDlg(Action, Hdlg, id)
  720.  
  721. <:#284,9360>Declare CellEngine(action,Formula)
  722.  
  723. <:#284,9360>Declare ManageList(Hdlg, id, section)
  724.  
  725. <:#284,9360>Declare RadioCall(Hdlg, id, value)
  726.  
  727. <:#284,9360>Declare DoIt(Hdlg, id)
  728.  
  729. <:#284,9360>
  730.  
  731. Define    Desc    "Enter the formula or @function below:"
  732.  
  733. <:#568,9360>Define    Desc2    "To calculate the sum of three numbers multiplied by 12, type @sum(12,22,34)*12"
  734.  
  735. <:#284,9360>
  736.  
  737. <:#568,9360>Define    HelpText    "Choose @Functions to get a list of available @functions to insert into your formula."
  738.  
  739. @Subhead@<:#284,9360>Function Main()
  740.  
  741. <:#284,9360>DefStr hInstance;
  742.  
  743. <:#284,9360>Mac = GetRunningMacroFile$()
  744.  
  745. <:#284,9360>FontDlg(1,0,0)
  746.  
  747. <:#284,9360>CellEngine(1,0)
  748.  
  749. <:#284,9360>FillEdit(1001, Desc)
  750.  
  751. <:#284,9360>FillEdit(1003, Desc2)
  752.  
  753. <:#284,9360>FillEdit(1004, HelpText)
  754.  
  755. <:#284,9360>SetDlgCallBack(0,"{Mac}!InitDlg")
  756.  
  757. <:#284,9360>SetDlgCallBack(22,"{Mac}!FunButton")
  758.  
  759. <:#284,9360>SetDlgCallBack(8000,"{Mac}!DataChange")
  760.  
  761. @Outline3@<:#284,9360>DlgKeyInterrupt(VK_F1, "{mac}!DisplayHelp")
  762.  
  763. <:#284,9360>Box = DialogBox(".","Deprec")
  764.  
  765. <:#284,9360>If Box = 3
  766.  
  767. <:#284,9360>    Answer = GetDialogField$(8004)
  768.  
  769. <:#284,9360>    ClipBoardWrite(Answer,1)
  770.  
  771. <:#284,9360>Endif
  772.  
  773. <:#284,9360>FontDlg(4,0,0)    ' Destroy the small font object and free the global variable
  774.  
  775. <:#284,9360>CellEngine(0,0)        ' Shut down the engine and free the global variable
  776.  
  777. <:#284,9360>End function
  778.  
  779. <:#284,9360>
  780.  
  781. <:#284,9360>
  782.  
  783. @Subhead@<:#284,9360>Function DataChange(Hdlg, id, value)
  784.  
  785. <:#284,9360>IgnoreKeyBoard(2)
  786.  
  787. <:#284,9360>DefStr Allowance;
  788.  
  789. <:#284,9360>Formula = GetDlgItemText(hDlg, 8000)
  790.  
  791. <:#284,9360>Define    Form    "@IF({Formula}<<1E49,@Round({Formula},2),@ERR)"
  792.  
  793. <:#284,9360>' the formula traps for values
  794.  
  795. <:#284,9360>Answer = CellEngine(3,Form)
  796.  
  797. <:#284,9360>If IsNumeric(Answer)
  798.  
  799. <:#284,9360>    Answer = Answer * 1
  800.  
  801. <:#284,9360>    SetDlgItemText(hDlg, 8004, FormatNum$("","",NumDec,Answer))
  802.  
  803. <:#284,9360>Else
  804.  
  805. <:#284,9360>    SetDlgItemText(hDlg, 8004, Answer)
  806.  
  807. <:#284,9360>Endif
  808.  
  809. <:#284,9360>
  810.  
  811. <:#284,9360>End Function
  812.  
  813. @Subhead@<:#284,9360>
  814.  
  815. @Subhead@<:#284,9360>Function InitDlg(hDlg, id, value)
  816.  
  817. <:#284,9360>' use the fontdlg function to display the following control with a small font
  818.  
  819. <:#284,9360>IgnoreKeyBoard(2)
  820.  
  821. <:#284,9360>HourGlass(on)
  822.  
  823. <:#284,9360>For t = 1000 to 1004
  824.  
  825. <:#284,9360>    FontDlg(3, Hdlg, T)
  826.  
  827. <:#284,9360>Next
  828.  
  829. <:#284,9360>FontDlg(3, Hdlg, 8000)
  830.  
  831. <:#284,9360>'SetDlgItemText(hDlg, 8004, FormatNum$("","",NumDec,0))
  832.  
  833. <:#284,9360>AppSendMessage(GetDlgItem(Hdlg, 8000),EM_LimitText,120,0)
  834.  
  835. <:#284,9360>HourGlass(off)
  836.  
  837. <:#284,9360>End Function
  838.  
  839. <:#284,9360>
  840.  
  841. <:#284,9360>Function FunButton(Hdlg, id, value)
  842.  
  843. <:#284,9360>
  844.  
  845. <:#284,9360>DoIt(Hdlg, 8000)
  846.  
  847. <:#284,9360>DataChange(Hdlg, 8000,GetDlgItemText(Hdlg, 8000))
  848.  
  849. <:#284,9360>End Function
  850.  
  851. <:#284,9360>
  852.  
  853. <:#284,9360>
  854.  
  855. <:#284,9360>
  856.  
  857. <:#284,9360>
  858.  
  859. @Subhead@<:#284,9360>function DisplayHelp()
  860.  
  861. @Outline2@<:#284,9360>' two defines needed for help.  The help name and panel number are defined above
  862.  
  863. @Outline2@<:#284,9360>define FindWindowa() DllCall("user,FindWindow,HCC", %1, %2)
  864.  
  865. @Outline2@<:#284,9360>define WinHelpa(hWnd, file, cmd, ptr)    DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4)
  866.  
  867. @Outline2@<:#284,9360>
  868.  
  869. @Outline2@<:#284,9360>
  870.  
  871. @Outline2@<:#284,9360>prohWnd = FindWindowa("AmiProWndA", 0)
  872.  
  873. @Outline2@<:#284,9360>helpfile = strcat$(GetAmiDirectory$(), "HelpPack.hlp")
  874.  
  875. @Outline2@<:#284,9360>PanelNum= 100 
  876.  
  877. @Outline2@<:#284,9360>WinHelpa(prohWnd, helpfile, 0x0001, Panelnum)
  878.  
  879. @Outline2@<:#284,9360>end function
  880.  
  881. @Outline1@<:#284,9360>
  882.  
  883. <:#284,9360>
  884.  
  885. <:#284,9360>
  886.  
  887. <:#284,9360>
  888.  
  889. <:p<* >>
  890.  
  891. @Subhead@<:#284,9360>Function CellEngine(Action, Formula)
  892.  
  893. <:#284,9360>'Available Actions
  894.  
  895. <:#284,9360>'    1         Start the engine and allocate globalvar
  896.  
  897. <:#284,9360>'    2        Return the handle to the instance of the sheet
  898.  
  899. <:#284,9360>'    3        Pass a formula as the second param
  900.  
  901. <:#284,9360>'    0        Shut everything down
  902.  
  903. <:#284,9360>'    Default    Expect a formula and return an answer
  904.  
  905. <:#284,9360>
  906.  
  907. <:#284,9360>' these defines may be useful at the beginning of your macro
  908.  
  909. <:#284,9360>Define StartEngine    1
  910.  
  911. <:#284,9360>Define GetInstance    2
  912.  
  913. <:#284,9360>Define    PassFormula    3
  914.  
  915. <:#284,9360>Define CloseEngine    0
  916.  
  917. <:#284,9360>
  918.  
  919. <:#568,9360>Define    CECREATEINSTANCE(LPHANDLE)    DllCall("LTSCE01.DLL,CECREATEINSTANCE,HO",%1)
  920.  
  921. <:#568,9360>Define    CEDESTROYINSTANCE(HANDLE)    DllCall("LTSCE01.DLL,CEDESTROYINSTANCE,HH",%1)
  922.  
  923. <:#568,9360>Define    CECALCNOW(HINSTANCE, lpFormula, lpOutPut)    DllCall("LTSCE01.DLL,CECALCNOW,HHCC",%1,%2,%3)
  924.  
  925. <:#284,9360>
  926.  
  927. <:#284,9360>DefStr hInstance, Answer, Var;
  928.  
  929. <:#284,9360>Mac = GetRunningMacroFile$()
  930.  
  931. <:#284,9360>GlobalInstance = StrCat$(Mac,"hIstance")
  932.  
  933. <:#284,9360>AmiDir = GetAmiDirectory$()
  934.  
  935. <:#284,9360>
  936.  
  937. <:#284,9360>Switch Action
  938.  
  939. <:#284,9360>    Case 1
  940.  
  941. <:#284,9360>        ' start the engine
  942.  
  943. <:#284,9360>        LibId = DLLLoadLib("{AmiDir}LTSCE01.DLL","CECreateInstance","HO")
  944.  
  945. <:#284,9360>        If LibId = 0
  946.  
  947. <:#568,9360>            Message("LTSCE01.DLL not found.  Copy the dll to your windows directory")    
  948.  
  949. <:#284,9360>            Return -1;
  950.  
  951. <:#284,9360>        Endif
  952.  
  953. <:#284,9360>        RetVal = CECREATEINSTANCE(&hInstance)
  954.  
  955. <:#284,9360>        AllocGlobalVar("{GlobalInstance}",1)
  956.  
  957. <:#284,9360>        AllocGlobalVar("{Mac}LibId",1)
  958.  
  959. <:#284,9360>        SetGlobalVar("{Mac}Libid",LibId)
  960.  
  961. <:#284,9360>        SetGlobalVar("{GlobalInstance}",hInstance)
  962.  
  963. <:#284,9360>        Return hInstance;
  964.  
  965. <:#284,9360>        Break;
  966.  
  967. <:#284,9360>
  968.  
  969. <:#284,9360>    Case 2
  970.  
  971. <:#284,9360>        ' return the handle to the instance of the sheet
  972.  
  973. <:#284,9360>        AllocGlobalVar("{GlobalInstance}",1)
  974.  
  975. <:#284,9360>        hInstance = GetGlobalVar$("{GlobalInstance}")
  976.  
  977. <:#284,9360>        Return hInstance;
  978.  
  979. <:#284,9360>        Break;
  980.  
  981. <:#284,9360>
  982.  
  983. <:#284,9360>    Case 3;
  984.  
  985. <:#284,9360>        ' Calculate the formula and return the answer
  986.  
  987. <:#284,9360>            AllocGlobalVar("{GlobalInstance}",1)
  988.  
  989. <:#284,9360>            hInstance = GetGlobalVar$("{GlobalInstance}")
  990.  
  991. <:#284,9360>            CECalcNow(hInstance,"{Formula}",&Answer)
  992.  
  993. <:#284,9360>            Return Answer;
  994.  
  995. <:#284,9360>        Break;
  996.  
  997. <:#284,9360>        
  998.  
  999. <:#284,9360>
  1000.  
  1001. <:#284,9360>    Case 0
  1002.  
  1003. <:#284,9360>        ' destroy the instance of the sheet and free the global var and libid
  1004.  
  1005. <:#284,9360>        AllocGlobalVar("{GlobalInstance}",1)
  1006.  
  1007. <:#284,9360>        AllocGlobalVar("{Mac}LibId",1)
  1008.  
  1009. <:#284,9360>        hInstance = GetGlobalVar$("{GlobalInstance}")
  1010.  
  1011. <:#284,9360>        LibId = GetGlobalVar$("{Mac}LibId")
  1012.  
  1013. <:#284,9360>        If hInstance
  1014.  
  1015. <:#284,9360>            CEDestroyInstance(hInstance)
  1016.  
  1017. <:#284,9360>            DllFreeLib(Libid)
  1018.  
  1019. <:#284,9360>        Endif
  1020.  
  1021. <:#284,9360>        FreeGlobalVar("{GlobalInstance}")
  1022.  
  1023. <:#284,9360>        FreeGlobalVar("{Mac}LibId")
  1024.  
  1025. <:#284,9360>        Break;
  1026.  
  1027. <:#284,9360>
  1028.  
  1029. <:#284,9360>    Default
  1030.  
  1031. <:#284,9360>EndSwitch
  1032.  
  1033. <:#284,9360>End Function
  1034.  
  1035. @Subhead@<:#284,9360>
  1036.  
  1037. <:#284,9360>
  1038.  
  1039. <:#284,9360>
  1040.  
  1041. <:#284,9360>
  1042.  
  1043. <:#284,9360>
  1044.  
  1045. @Subhead@<:#284,9360>Function FontDlg(Action, Hdlg, id)
  1046.  
  1047. <:#284,9360>' 1    Create a font and allocvar
  1048.  
  1049. <:#284,9360>' 2    Return the handle of the create font 
  1050.  
  1051. <:#284,9360>' 3    Set the id specified to the font
  1052.  
  1053. <:#284,9360>' 4    Freeglobalvar and delete created object
  1054.  
  1055. <:#284,9360>
  1056.  
  1057. @Outline2@<:#568,9360>define    CreateFontDLG()        DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
  1058.  
  1059. @Outline2@<:#284,9360>define    DeleteObjectDLG(handle)    DllCall("gdi,DeleteObject,HH", %1)
  1060.  
  1061. @Outline2@<:#568,9360>define    SendMessageDLG(hwnd, msg, wpara, lparm)    DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4)
  1062.  
  1063. @Outline2@<:#284,9360>
  1064.  
  1065. @Outline2@<:#284,9360>
  1066.  
  1067. <:#284,9360>Switch Action
  1068.  
  1069. <:#284,9360>    Case 1    ' Create the font and store it
  1070.  
  1071. @Outline2@<:#284,9360>        Font = CreateFontDLG(13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 32, "Helv")
  1072.  
  1073. <:#284,9360>        AllocGlobalVar("FontHandle",1)
  1074.  
  1075. <:#284,9360>        If Font
  1076.  
  1077. <:#284,9360>            SetGlobalVar("FontHandle",Font)
  1078.  
  1079. <:#284,9360>            Return Font
  1080.  
  1081. <:#284,9360>        Else
  1082.  
  1083. <:#284,9360>            Return 0;    ' no font
  1084.  
  1085. <:#284,9360>        Endif
  1086.  
  1087. <:#284,9360>        Break;
  1088.  
  1089. <:#284,9360>    Case 2    ' Return the handle to the font
  1090.  
  1091. <:#284,9360>        Handle = GetGlobalVar$("FontHandle")
  1092.  
  1093. <:#284,9360>        If Handle 
  1094.  
  1095. <:#284,9360>            Return Handle
  1096.  
  1097. <:#284,9360>        Else
  1098.  
  1099. <:#284,9360>            Return 0
  1100.  
  1101. <:#284,9360>        Endif
  1102.  
  1103. <:#284,9360>
  1104.  
  1105. <:#284,9360>    Case 3    ' Set the id to the font
  1106.  
  1107. <:#284,9360>        Handle = GetGlobalVar$("FontHandle")
  1108.  
  1109. <:#284,9360>        If Handle 
  1110.  
  1111. <:#284,9360>            IdControl = GetDlgITem(Hdlg, id)
  1112.  
  1113. <:#284,9360>            SendMessageDlg(idControl, 0x30, Handle, 0)
  1114.  
  1115. <:#284,9360>            Return 1
  1116.  
  1117. <:#284,9360>        Else
  1118.  
  1119. <:#284,9360>            Return 0
  1120.  
  1121. <:#284,9360>        Endif
  1122.  
  1123. <:#284,9360>        Break;        
  1124.  
  1125. <:#284,9360>        
  1126.  
  1127. <:#284,9360>    Case 4    ' Delete the font and clear the var
  1128.  
  1129. <:#284,9360>        Handle = GetGlobalVar$("FontHandle")
  1130.  
  1131. <:#284,9360>        If Handle
  1132.  
  1133. <:#284,9360>            DeleteObjectDLG(Handle)
  1134.  
  1135. <:#284,9360>            Stat = 1    
  1136.  
  1137. <:#284,9360>        Else
  1138.  
  1139. <:#284,9360>            Stat = 0
  1140.  
  1141. <:#284,9360>        Endif
  1142.  
  1143. <:#284,9360>        FreeGlobalVar("FontHandle")
  1144.  
  1145. <:#284,9360>        Return Stat        
  1146.  
  1147. <:#284,9360>    Default
  1148.  
  1149. <:#284,9360>EndSwitch    
  1150.  
  1151. <:#284,9360>
  1152.  
  1153. <:#284,9360>End Function
  1154.  
  1155. @Subhead@<:#284,9360>
  1156.  
  1157. @Subhead@<:#284,9360>Function DoIt(Hdlg, Id)
  1158.  
  1159. <:#284,9360>Define    EnableWindowIns()    DllCall("User,EnableWindow,AHA",%1,%2)
  1160.  
  1161. <:#284,9360>Define SetFocusIns() DllCall("user,SetFocus,HH",%1)
  1162.  
  1163. <:#284,9360>Define        LB_RESETCONTENT        0x405
  1164.  
  1165. <:#284,9360>Define        ExID        8010
  1166.  
  1167. <:#284,9360>Define        DescID        1001
  1168.  
  1169. <:#284,9360>Define        FinancialRadio    20
  1170.  
  1171. <:#284,9360>Define        StatRadio    21
  1172.  
  1173. <:#284,9360>Define        MathRadio    22
  1174.  
  1175. <:#284,9360>Define        LogicRadio    23
  1176.  
  1177. <:#284,9360>Define        FinanSect    "Financial"
  1178.  
  1179. <:#284,9360>Define        StatSect    "Statistical"
  1180.  
  1181. <:#284,9360>Define        MathSect    "Mathematical"
  1182.  
  1183. <:#284,9360>Define        LogicSect    "Logical"
  1184.  
  1185. <:#284,9360>
  1186.  
  1187. <:#284,9360>
  1188.  
  1189. <:#284,9360>Define        IniName        "AmiCalc.ini"
  1190.  
  1191. <:#284,9360>Define        Delimiter    "~"
  1192.  
  1193. <:#284,9360>
  1194.  
  1195. <:#284,9360>
  1196.  
  1197. <:#284,9360>EnableWindowIns(Hdlg,0)
  1198.  
  1199. <:#284,9360>Mac = GetRunningMacroFile$()
  1200.  
  1201. <:#284,9360>SetDlgCallBack(FinancialRadio,"{Mac}!RadioCall")
  1202.  
  1203. <:#284,9360>SetDlgCallBack(StatRadio,"{Mac}!RadioCall")
  1204.  
  1205. <:#284,9360>SetDlgCallBack(MathRadio,"{Mac}!RadioCall")
  1206.  
  1207. <:#284,9360>SetDlgCallBack(LogicRadio,"{Mac}!RadioCall")
  1208.  
  1209. <:#284,9360>SetDlgCallBack(0,"{Mac}!InitCall")
  1210.  
  1211. <:#284,9360>SetDlgCallBack(9000,"{Mac}!RadioCall")
  1212.  
  1213. @Outline3@<:#284,9360>DlgKeyInterrupt(VK_F1, "{mac}!DisplayHelp")
  1214.  
  1215. <:#284,9360>FillEdit(20,1)
  1216.  
  1217. <:#284,9360>Box = DialogBox(".","More")
  1218.  
  1219. <:#284,9360>If Box = 1
  1220.  
  1221. <:#284,9360>    ' need to paste to the edit box
  1222.  
  1223. <:#284,9360>    Text = GetDlgItemText(Hdlg, Id)
  1224.  
  1225. <:#284,9360>    Example = GetDialogField$(ExID)
  1226.  
  1227. <:#284,9360>    NewText = StrCat$(Text, Example)
  1228.  
  1229. <:#284,9360>    SetDlgItemText(Hdlg, Id, NewText)
  1230.  
  1231. <:#284,9360>Endif
  1232.  
  1233. <:#284,9360>EnableWindowIns(Hdlg,1)
  1234.  
  1235. <:#284,9360>SetFocusIns(GetDlgItem(Hdlg, Id))
  1236.  
  1237. <:#284,9360>End Function
  1238.  
  1239. <:#284,9360>
  1240.  
  1241. <:#284,9360>
  1242.  
  1243. @Subhead@<:#284,9360>Function InitCall(Hdlg, id, value)
  1244.  
  1245. <:#284,9360>IgnoreKeyBoard(2)
  1246.  
  1247. <:#284,9360>
  1248.  
  1249. <:#284,9360>FontDlg(3,Hdlg, DescID)
  1250.  
  1251. <:#284,9360>FontDlg(3, Hdlg, ExID)
  1252.  
  1253. <:#284,9360>
  1254.  
  1255. <:#284,9360>
  1256.  
  1257. <:#284,9360>ManageList(Hdlg, 9000, FinanSect)
  1258.  
  1259. <:#284,9360>Key= GetDlgItemText(Hdlg, 9000)
  1260.  
  1261. <:#284,9360>FullText  = GetProfileString$(FinanSect,Key,IniName)
  1262.  
  1263. <:#284,9360>Example = StrField$(FullText, 2, Delimiter)
  1264.  
  1265. <:#284,9360>Descx = StrField$(FullText, 1, Delimiter)
  1266.  
  1267. <:#284,9360>SetDlgITemText(Hdlg, ExID,Example)
  1268.  
  1269. <:#284,9360>SetDlgItemText(hdlg, DescID, Descx)
  1270.  
  1271. <:#284,9360>End Function
  1272.  
  1273. <:#284,9360>
  1274.  
  1275. <:#284,9360>
  1276.  
  1277. @Subhead@<:#284,9360>Function RadioCall(hdlg, id, value)
  1278.  
  1279. <:#284,9360>IgnoreKeyBoard(2)
  1280.  
  1281. <:#284,9360>If GetDlgItemText(Hdlg, FinancialRadio)
  1282.  
  1283. <:#284,9360>    Section = FinanSect
  1284.  
  1285. <:#284,9360>ElseIf GetDlgItemText(Hdlg, MathRadio)
  1286.  
  1287. <:#284,9360>    Section = MathSect
  1288.  
  1289. <:#284,9360>ElseIf GetDlgITemText(hdlg, StatRadio)
  1290.  
  1291. <:#284,9360>    Section = StatSect
  1292.  
  1293. <:#284,9360>ElseIf GetDlgItemText(hdlg, LogicRadio)
  1294.  
  1295. <:#284,9360>    Section = LogicSect
  1296.  
  1297. <:#284,9360>Endif
  1298.  
  1299. <:#284,9360>
  1300.  
  1301. <:#284,9360>Switch Id
  1302.  
  1303. <:#284,9360>    Case 9000
  1304.  
  1305. <:#284,9360>        
  1306.  
  1307. <:#284,9360>        ' this is for the list box
  1308.  
  1309. <:#284,9360>        Key= GetDlgItemText(Hdlg, 9000)
  1310.  
  1311. <:#284,9360>        FullText  = GetProfileString$(Section,Key,IniName)
  1312.  
  1313. <:#284,9360>        Example = StrField$(FullText, 2, Delimiter)
  1314.  
  1315. <:#284,9360>        Descx = StrField$(FullText, 1, Delimiter)
  1316.  
  1317. <:#284,9360>        SetDlgITemText(Hdlg, ExID,Example)
  1318.  
  1319. <:#284,9360>        SetDlgItemText(hdlg, DescID, Descx)
  1320.  
  1321. <:#284,9360>        Break;
  1322.  
  1323. <:#284,9360>
  1324.  
  1325. <:#284,9360>    Default
  1326.  
  1327. <:#284,9360>        ' this will be for any radio button
  1328.  
  1329. <:#284,9360>        ManageList(Hdlg, 9000, Section)
  1330.  
  1331. <:#284,9360>        Key= GetDlgItemText(Hdlg, 9000)
  1332.  
  1333. <:#284,9360>        FullText  = GetProfileString$(Section,Key,IniName)
  1334.  
  1335. <:#284,9360>        Example = StrField$(FullText, 2, Delimiter)
  1336.  
  1337. <:#284,9360>        Descx = StrField$(FullText, 1, Delimiter)
  1338.  
  1339. <:#284,9360>        SetDlgITemText(Hdlg, ExID,Example)
  1340.  
  1341. <:#284,9360>        SetDlgItemText(hdlg, DescID, Descx)
  1342.  
  1343. <:#284,9360>        Break;
  1344.  
  1345. <:#284,9360>
  1346.  
  1347. <:#284,9360>EndSwitch
  1348.  
  1349. <:#284,9360>
  1350.  
  1351. <:#284,9360>
  1352.  
  1353. <:#284,9360>End Function
  1354.  
  1355. <:#284,9360>
  1356.  
  1357. <:#284,9360>
  1358.  
  1359. @Subhead@<:#284,9360>Function ManageList(Hdlg, id, Section)
  1360.  
  1361. <:#284,9360>DefStr KeyName;
  1362.  
  1363. <:#284,9360>AppSendMessage(GetDlgItem(Hdlg, 9000),LB_RESETCONTENT,0,0)
  1364.  
  1365. <:#284,9360>AllKeys = GetProfileString$(Section,0,IniName)
  1366.  
  1367. <:#284,9360>Field = 1
  1368.  
  1369. <:#284,9360>While -1 != Assign(&KeyName, StrField$(AllKeys, Field, "~"))
  1370.  
  1371. <:#284,9360>    If KeyName <;>""
  1372.  
  1373. <:#284,9360>        SetDlgItemText(Hdlg, 9000, KeyName)
  1374.  
  1375. <:#284,9360>    Endif
  1376.  
  1377. <:#284,9360>    Field = Field + 1
  1378.  
  1379. <:#284,9360>Wend
  1380.  
  1381. <:#284,9360>End function
  1382.  
  1383. <:#284,9360>
  1384.  
  1385. <:#284,9360>
  1386.  
  1387. <:#284,9360>
  1388.  
  1389. <:#284,9360>
  1390.  
  1391. <:#284,9360>DIALOG    More
  1392.  
  1393. <:#284,9360>-2134376448    13    61    28    187    118    ""    "AmiDialog"    "More @Functions"
  1394.  
  1395. <:#284,9360>FONT    8    "Helv"
  1396.  
  1397. <:#284,9360>7    12    50    11    20    1342242825    "button"    "&Financial"    0 
  1398.  
  1399. <:#284,9360>7    24    50    11    21    1342242825    "button"    "&Statistical"    0 
  1400.  
  1401. <:#284,9360>7    35    54    11    22    1342242825    "button"    "&Mathematical"    0 
  1402.  
  1403. <:#284,9360>7    46    50    11    23    1342242825    "button"    "&Logical"    0 
  1404.  
  1405. <:#284,9360>79    15    58    40    9000    1352728579    "listbox"    ""    0 
  1406.  
  1407. <:#284,9360>7    57    176    24    30    1342308359    "button"    "Example"    0 
  1408.  
  1409. <:#284,9360>7    83    176    32    31    1342308359    "button"    "Description"    0 
  1410.  
  1411. <:#284,9360>13    68    148    10    8010    1342177280    "static"    "text"    0 
  1412.  
  1413. <:#284,9360>13    93    158    20    1001    1342177280    "static"    "text"    0 
  1414.  
  1415. <:#284,9360>4    3    44    10    1000    1342177280    "static"    "Categories:"    0 
  1416.  
  1417. <:#284,9360>78    3    40    10    1002    1342177280    "static"    "@Functions:"    0 
  1418.  
  1419. <:#284,9360>143    3    40    14    1    1342373889    "button"    "Insert"    0 
  1420.  
  1421. <:#284,9360>143    19    40    14    2    1342373888    "button"    "Cancel"    0 
  1422.  
  1423. <:#284,9360>END DIALOG
  1424.  
  1425. @Subhead@<:#284,9360>
  1426.  
  1427. @Subhead@<:#284,9360>
  1428.  
  1429. @Subhead@<:#284,9360>
  1430.  
  1431. @Subhead@<:#284,9360>
  1432.  
  1433. <:#284,9360>DIALOG    Deprec
  1434.  
  1435. <:#284,9360>-2134376448    11    56    53    226    78    ""    "AmiDialog"    "Solve @Function"
  1436.  
  1437. <:#284,9360>FONT    8    "Helv"
  1438.  
  1439. <:#284,9360>5    16    162    12    8000    1350631552    "edit"    ""    0 
  1440.  
  1441. <:#284,9360>181    4    40    14    1    1342373889    "button"    "Done"    0 
  1442.  
  1443. <:#284,9360>5    4    106    8    1001    1342177280    "static"    ""    0 
  1444.  
  1445. <:#284,9360>173    64    46    8    8004    1342177281    "static"    ""    0 
  1446.  
  1447. <:#284,9360>171    49    50    27    20    1342308359    "button"    ""    0 
  1448.  
  1449. <:#284,9360>5    35    32    10    1002    1342177280    "static"    "Example:"    0 
  1450.  
  1451. <:#284,9360>34    35    128    18    1003    1342177280    "static"    "text"    0 
  1452.  
  1453. <:#284,9360>181    20    40    14    3    1342373888    "button"    "Copy"    0 
  1454.  
  1455. <:#284,9360>185    54    30    8    1000    1342177280    "static"    "Answer:"    0 
  1456.  
  1457. <:#284,9360>170    36    51    14    22    1342373888    "button"    "@&Functions..."    0 
  1458.  
  1459. <:#284,9360>5    56    159    17    1004    1342177280    "static"    "text"    0 
  1460.  
  1461. <:#284,9360>END DIALOG
  1462.  
  1463. >
  1464.  
  1465. [Embedded]
  1466. 00021506
  1467. >
  1468. [macsum] 13
  1469. Main 0 0 5 17
  1470. DataChange 548 3 4 39
  1471. InitDlg 802 3 2 55
  1472. FunButton 1051 3 1 68
  1473. DisplayHelp 1148 0 4 77
  1474. CellEngine 1334 2 9 93
  1475. FontDlg 2301 3 5 170
  1476. DoIt 3098 2 6 226
  1477. InitCall 3607 3 5 269
  1478. RadioCall 3902 3 6 286
  1479. ManageList 4625 3 4 327
  1480. More 4897 0 -1 343
  1481. Deprec 5644 0 -1 364
  1482. [macse]
  1483. 14 Main
  1484. 0 802
  1485. 13
  1486. 8 2
  1487. 16 FontDlg 1 0 0
  1488. 16 CellEngine 1 0
  1489. 0 31 1001 "Enter the formula or @function below:"
  1490. 0 31 1003 "To calculate the sum of three numbers multiplied by 12, type @sum(12,22,34)*12"
  1491. 0 31 1004 "Choose @Functions to get a list of available @functions to insert into your formula."
  1492. 0 41 0 "{2}!InitDlg"
  1493. 0 41 22 "{2}!FunButton"
  1494. 0 41 8000 "{2}!DataChange"
  1495. 0 47 112 "{2}!DisplayHelp"
  1496. 0 26 "." "Deprec"
  1497. 13
  1498. 8 3
  1499. 6 3
  1500. 5 3
  1501. 18 0
  1502. 11 00000499
  1503. 0 27 8004
  1504. 13
  1505. 8 4
  1506. 0 1038 "{4}" 1
  1507. 16 FontDlg 4 0 0
  1508. 16 CellEngine 0 0
  1509. 6 0
  1510. 15
  1511. 9
  1512. 14 DataChange
  1513. 0 32 2
  1514. 0 42 "{0}" 8000
  1515. 13
  1516. 8 5
  1517. 16 CellEngine 3 "@IF({5}<<1E49,@Round({5},2),@ERR)"
  1518. 13
  1519. 8 6
  1520. 0 277 "{6}"
  1521. 13
  1522. 11 00000219
  1523. 6 6
  1524. 5 1
  1525. 4 0
  1526. 8 6
  1527. 0 19 "" "" 2 "{6}"
  1528. 13
  1529. 0 43 "{0}" 8004 [X]
  1530. 10 00000242
  1531. 0 43 "{0}" 8004 "{6}"
  1532. 6 3
  1533. 15
  1534. 9
  1535. 14 InitDlg
  1536. 0 32 2
  1537. 0 296 1
  1538. 5 1000
  1539. 8 4
  1540. 5 1004
  1541. 6 4
  1542. 18 2
  1543. 12 00000120
  1544. 10 00000159
  1545. 5 1
  1546. 6 4
  1547. 3 0
  1548. 8 4
  1549. 10 00000042
  1550. 16 FontDlg 3 "{0}" "{4}"
  1551. 10 00000087
  1552. 16 FontDlg 3 "{0}" 8000
  1553. 0 44 "{0}" 8000
  1554. 13
  1555. 0 1036 [X] 1045 120 0
  1556. 0 296 0
  1557. 6 3
  1558. 15
  1559. 9
  1560. 14 FunButton
  1561. 16 DoIt "{0}" 8000
  1562. 0 42 "{0}" 8000
  1563. 13
  1564. 16 DataChange "{0}" 8000 [X]
  1565. 6 3
  1566. 15
  1567. 9
  1568. 14 DisplayHelp
  1569. 0 284 "user,FindWindow,HCC" "AmiProWndA" 0
  1570. 13
  1571. 8 1
  1572. 0 798
  1573. 13
  1574. 0 16 [X] "HelpPack.hlp"
  1575. 13
  1576. 8 2
  1577. 5 100
  1578. 8 3
  1579. 0 284 "user,WinHelp,HHCHJ" "{1}" "{2}" 1 "{3}"
  1580. 6 0
  1581. 15
  1582. 9
  1583. 14 CellEngine
  1584. 0 802
  1585. 13
  1586. 8 6
  1587. 0 16 "{6}" "hIstance"
  1588. 13
  1589. 8 7
  1590. 0 798
  1591. 13
  1592. 8 8
  1593. 5 1
  1594. 6 0
  1595. 18 0
  1596. 11 00000447
  1597. 0 297 "{8}LTSCE01.DLL" "CECreateInstance" "HO"
  1598. 13
  1599. 8 9
  1600. 6 9
  1601. 5 0
  1602. 18 0
  1603. 11 00000277
  1604. 0 3 "LTSCE01.DLL not found.  Copy the dll to your windows directory"
  1605. 5 -1
  1606. 15
  1607. 9
  1608. 0 284 "LTSCE01.DLL,CECREATEINSTANCE,HO" &3
  1609. 13
  1610. 8 10
  1611. 0 271 "{7}" 1
  1612. 0 271 "{6}LibId" 1
  1613. 0 264 "{6}Libid" "{9}"
  1614. 0 264 "{7}" "{3}"
  1615. 6 3
  1616. 15
  1617. 9
  1618. 10 00000955
  1619. 10 00000955
  1620. 5 2
  1621. 6 0
  1622. 18 0
  1623. 11 00000551
  1624. 0 271 "{7}" 1
  1625. 0 265 "{7}"
  1626. 13
  1627. 8 3
  1628. 6 3
  1629. 15
  1630. 9
  1631. 10 00000955
  1632. 10 00000955
  1633. 5 3
  1634. 6 0
  1635. 18 0
  1636. 11 00000706
  1637. 0 271 "{7}" 1
  1638. 0 265 "{7}"
  1639. 13
  1640. 8 3
  1641. 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{3}" "{1}" &4
  1642. 6 4
  1643. 15
  1644. 9
  1645. 10 00000955
  1646. 10 00000955
  1647. 5 0
  1648. 6 0
  1649. 18 0
  1650. 11 00000955
  1651. 0 271 "{7}" 1
  1652. 0 271 "{6}LibId" 1
  1653. 0 265 "{7}"
  1654. 13
  1655. 8 3
  1656. 0 265 "{6}LibId"
  1657. 13
  1658. 8 9
  1659. 6 3
  1660. 11 00000898
  1661. 0 284 "LTSCE01.DLL,CEDESTROYINSTANCE,HH" "{3}"
  1662. 0 298 "{9}"
  1663. 0 266 "{7}"
  1664. 0 266 "{6}LibId"
  1665. 10 00000955
  1666. 10 00000955
  1667. 6 2
  1668. 15
  1669. 9
  1670. 14 FontDlg
  1671. 5 1
  1672. 6 0
  1673. 18 0
  1674. 11 00000255
  1675. 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 0 0 0 0 0 "Helv"
  1676. 13
  1677. 8 4
  1678. 0 271 "FontHandle" 1
  1679. 6 4
  1680. 11 00000217
  1681. 0 264 "FontHandle" "{4}"
  1682. 6 4
  1683. 15
  1684. 9
  1685. 10 00000229
  1686. 5 0
  1687. 15
  1688. 9
  1689. 10 00000785
  1690. 10 00000785
  1691. 5 2
  1692. 6 0
  1693. 18 0
  1694. 11 00000381
  1695. 0 265 "FontHandle"
  1696. 13
  1697. 8 5
  1698. 6 5
  1699. 11 00000356
  1700. 6 5
  1701. 15
  1702. 9
  1703. 10 00000368
  1704. 5 0
  1705. 15
  1706. 9
  1707. 10 00000785
  1708. 5 3
  1709. 6 0
  1710. 18 0
  1711. 11 00000596
  1712. 0 265 "FontHandle"
  1713. 13
  1714. 8 5
  1715. 6 5
  1716. 11 00000558
  1717. 0 44 "{1}" "{2}"
  1718. 13
  1719. 8 6
  1720. 0 284 "user,SendMessage,HHHHJ" "{6}" 48 "{5}" 0
  1721. 5 1
  1722. 15
  1723. 9
  1724. 10 00000570
  1725. 5 0
  1726. 15
  1727. 9
  1728. 10 00000785
  1729. 10 00000785
  1730. 5 4
  1731. 6 0
  1732. 18 0
  1733. 11 00000785
  1734. 0 265 "FontHandle"
  1735. 13
  1736. 8 5
  1737. 6 5
  1738. 11 00000730
  1739. 0 284 "gdi,DeleteObject,HH" "{5}"
  1740. 5 1
  1741. 8 7
  1742. 10 00000740
  1743. 5 0
  1744. 8 7
  1745. 0 266 "FontHandle"
  1746. 6 7
  1747. 15
  1748. 9
  1749. 10 00000785
  1750. 6 3
  1751. 15
  1752. 9
  1753. 14 DoIt
  1754. 0 284 "User,EnableWindow,AHA" "{0}" 0
  1755. 0 802
  1756. 13
  1757. 8 3
  1758. 0 41 20 "{3}!RadioCall"
  1759. 0 41 21 "{3}!RadioCall"
  1760. 0 41 22 "{3}!RadioCall"
  1761. 0 41 23 "{3}!RadioCall"
  1762. 0 41 0 "{3}!InitCall"
  1763. 0 41 9000 "{3}!RadioCall"
  1764. 0 47 112 "{3}!DisplayHelp"
  1765. 0 31 20 1
  1766. 0 26 "." "More"
  1767. 13
  1768. 8 4
  1769. 6 4
  1770. 5 1
  1771. 18 0
  1772. 11 00000406
  1773. 0 42 "{0}" "{1}"
  1774. 13
  1775. 8 5
  1776. 0 27 8010
  1777. 13
  1778. 8 6
  1779. 0 16 "{5}" "{6}"
  1780. 13
  1781. 8 7
  1782. 0 43 "{0}" "{1}" "{7}"
  1783. 0 284 "User,EnableWindow,AHA" "{0}" 1
  1784. 0 44 "{0}" "{1}"
  1785. 13
  1786. 0 284 "user,SetFocus,HH" [X]
  1787. 6 2
  1788. 15
  1789. 9
  1790. 14 InitCall
  1791. 0 32 2
  1792. 16 FontDlg 3 "{0}" 1001
  1793. 16 FontDlg 3 "{0}" 8010
  1794. 16 ManageList "{0}" 9000 "Financial"
  1795. 0 42 "{0}" 9000
  1796. 13
  1797. 8 4
  1798. 0 286 "Financial" "{4}" "AmiCalc.ini"
  1799. 13
  1800. 8 5
  1801. 0 20 "{5}" 2 "~"
  1802. 13
  1803. 8 6
  1804. 0 20 "{5}" 1 "~"
  1805. 13
  1806. 8 7
  1807. 0 43 "{0}" 8010 "{6}"
  1808. 0 43 "{0}" 1001 "{7}"
  1809. 6 3
  1810. 15
  1811. 9
  1812. 14 RadioCall
  1813. 0 32 2
  1814. 0 42 "{0}" 20
  1815. 13
  1816. 11 00000087
  1817. 7 "Financial"
  1818. 8 4
  1819. 10 00000272
  1820. 0 42 "{0}" 22
  1821. 13
  1822. 11 00000155
  1823. 7 "Mathematical"
  1824. 8 4
  1825. 10 00000272
  1826. 0 42 "{0}" 21
  1827. 13
  1828. 11 00000222
  1829. 7 "Statistical"
  1830. 8 4
  1831. 10 00000272
  1832. 0 42 "{0}" 23
  1833. 13
  1834. 11 00000272
  1835. 7 "Logical"
  1836. 8 4
  1837. 5 9000
  1838. 6 1
  1839. 18 0
  1840. 11 00000498
  1841. 0 42 "{0}" 9000
  1842. 13
  1843. 8 5
  1844. 0 286 "{4}" "{5}" "AmiCalc.ini"
  1845. 13
  1846. 8 6
  1847. 0 20 "{6}" 2 "~"
  1848. 13
  1849. 8 7
  1850. 0 20 "{6}" 1 "~"
  1851. 13
  1852. 8 8
  1853. 0 43 "{0}" 8010 "{7}"
  1854. 0 43 "{0}" 1001 "{8}"
  1855. 10 00000711
  1856. 10 00000711
  1857. 16 ManageList "{0}" 9000 "{4}"
  1858. 0 42 "{0}" 9000
  1859. 13
  1860. 8 5
  1861. 0 286 "{4}" "{5}" "AmiCalc.ini"
  1862. 13
  1863. 8 6
  1864. 0 20 "{6}" 2 "~"
  1865. 13
  1866. 8 7
  1867. 0 20 "{6}" 1 "~"
  1868. 13
  1869. 8 8
  1870. 0 43 "{0}" 8010 "{7}"
  1871. 0 43 "{0}" 1001 "{8}"
  1872. 10 00000711
  1873. 6 3
  1874. 15
  1875. 9
  1876. 14 ManageList
  1877. 0 44 "{0}" 9000
  1878. 13
  1879. 0 1036 [X] 1029 0 0
  1880. 0 286 "{2}" 0 "AmiCalc.ini"
  1881. 13
  1882. 8 5
  1883. 5 1
  1884. 8 6
  1885. 5 -1
  1886. 0 20 "{5}" "{6}" "~"
  1887. 13
  1888. 0 805 &4 [X]
  1889. 13
  1890. 18 1
  1891. 11 00000260
  1892. 6 4
  1893. 7 ""
  1894. 18 3
  1895. 11 00000227
  1896. 0 43 "{0}" 9000 "{4}"
  1897. 6 6
  1898. 5 1
  1899. 3 0
  1900. 8 6
  1901. 10 00000105
  1902. 6 3
  1903. 15
  1904. 9
  1905. DIALOG More
  1906. -2134376448 13 61 28 187 118 "" "AmiDialog" "More @Functions" 
  1907. FONT 8 "Helv" 
  1908. 7 12 50 11 20 1342242825 "button" "&Financial" 0 
  1909. 7 24 50 11 21 1342242825 "button" "&Statistical" 0 
  1910. 7 35 54 11 22 1342242825 "button" "&Mathematical" 0 
  1911. 7 46 50 11 23 1342242825 "button" "&Logical" 0 
  1912. 79 15 58 40 9000 1352728579 "listbox" "" 0 
  1913. 7 57 176 24 30 1342308359 "button" "Example" 0 
  1914. 7 83 176 32 31 1342308359 "button" "Description" 0 
  1915. 13 68 148 10 8010 1342177280 "static" "text" 0 
  1916. 13 93 158 20 1001 1342177280 "static" "text" 0 
  1917. 4 3 44 10 1000 1342177280 "static" "Categories:" 0 
  1918. 78 3 40 10 1002 1342177280 "static" "@Functions:" 0 
  1919. 143 3 40 14 1 1342373889 "button" "Insert" 0 
  1920. 143 19 40 14 2 1342373888 "button" "Cancel" 0 
  1921. DIALOG Deprec
  1922. -2134376448 11 56 53 226 78 "" "AmiDialog" "Solve @Function" 
  1923. FONT 8 "Helv" 
  1924. 5 16 162 12 8000 1350631552 "edit" "" 0 
  1925. 181 4 40 14 1 1342373889 "button" "Done" 0 
  1926. 5 4 106 8 1001 1342177280 "static" "" 0 
  1927. 173 64 46 8 8004 1342177281 "static" "" 0 
  1928. 171 49 50 27 20 1342308359 "button" "" 0 
  1929. 5 35 32 10 1002 1342177280 "static" "Example:" 0 
  1930. 34 35 128 18 1003 1342177280 "static" "text" 0 
  1931. 181 20 40 14 3 1342373888 "button" "Copy" 0 
  1932. 185 54 30 8 1000 1342177280 "static" "Answer:" 0 
  1933. 170 36 51 14 22 1342373888 "button" "@&Functions..." 0 
  1934. 5 56 159 17 1004 1342177280 "static" "text" 0 
  1935. 00021531
  1936.